# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Adding model 'OptionHolder'
        db.create_table('travel_game_optionholder', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
        ))
        db.send_create_signal('travel_game', ['OptionHolder'])

        # Adding model 'ItemHolder'
        db.create_table('travel_game_itemholder', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
        ))
        db.send_create_signal('travel_game', ['ItemHolder'])

        # Adding model 'Ailment'
        db.create_table('travel_game_ailment', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=15)),
            ('probability', self.gf('django.db.models.fields.DecimalField')(max_digits=5, decimal_places=4)),
            ('message', self.gf('django.db.models.fields.CharField')(max_length=150)),
            ('minHealth', self.gf('django.db.models.fields.IntegerField')()),
            ('maxHealth', self.gf('django.db.models.fields.IntegerField')()),
        ))
        db.send_create_signal('travel_game', ['Ailment'])

        # Adding model 'Party'
        db.create_table('travel_game_party', (
            ('itemholder_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['travel_game.ItemHolder'], unique=True, primary_key=True)),
            ('distanceFromStart', self.gf('django.db.models.fields.DecimalField')(max_digits=4, decimal_places=3)),
            ('pace', self.gf('django.db.models.fields.IntegerField')()),
            ('date', self.gf('django.db.models.fields.DateField')()),
        ))
        db.send_create_signal('travel_game', ['Party'])

        # Adding model 'Member'
        db.create_table('travel_game_member', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('health', self.gf('django.db.models.fields.IntegerField')()),
            ('party', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['travel_game.Party'])),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('status', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['travel_game.Ailment'], null=True, blank=True)),
            ('isMain', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('carryWeight', self.gf('django.db.models.fields.IntegerField')()),
            ('type', self.gf('django.db.models.fields.IntegerField')()),
        ))
        db.send_create_signal('travel_game', ['Member'])

        # Adding model 'Item'
        db.create_table('travel_game_item', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('weight', self.gf('django.db.models.fields.IntegerField')()),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=15)),
            ('quantity', self.gf('django.db.models.fields.IntegerField')()),
            ('description', self.gf('django.db.models.fields.CharField')(max_length=150)),
            ('maxQuantity', self.gf('django.db.models.fields.IntegerField')()),
            ('party', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['travel_game.Party'])),
            ('cost', self.gf('django.db.models.fields.DecimalField')(max_digits=4, decimal_places=2)),
        ))
        db.send_create_signal('travel_game', ['Item'])

        # Adding model 'Profession'
        db.create_table('travel_game_profession', (
            ('optionholder_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['travel_game.OptionHolder'], unique=True, primary_key=True)),
            ('description', self.gf('django.db.models.fields.CharField')(max_length=150)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=15)),
            ('party', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['travel_game.Party'], null=True)),
        ))
        db.send_create_signal('travel_game', ['Profession'])

        # Adding model 'Option'
        db.create_table('travel_game_option', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('holder', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['travel_game.OptionHolder'])),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=15)),
            ('displayName', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('value', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal('travel_game', ['Option'])

        # Adding model 'Landmark'
        db.create_table('travel_game_landmark', (
            ('optionholder_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['travel_game.OptionHolder'], unique=True, primary_key=True)),
            ('distanceFromStart', self.gf('django.db.models.fields.DecimalField')(max_digits=4, decimal_places=3)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
        ))
        db.send_create_signal('travel_game', ['Landmark'])

        # Adding model 'OTG'
        db.create_table('travel_game_otg', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
        ))
        db.send_create_signal('travel_game', ['OTG'])

        # Adding model 'River'
        db.create_table('travel_game_river', (
            ('landmark_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['travel_game.Landmark'], unique=True, primary_key=True)),
        ))
        db.send_create_signal('travel_game', ['River'])

        # Adding model 'FortTown'
        db.create_table('travel_game_forttown', (
            ('landmark_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['travel_game.Landmark'], unique=True, primary_key=True)),
        ))
        db.send_create_signal('travel_game', ['FortTown'])

        # Adding model 'NaturalWonder'
        db.create_table('travel_game_naturalwonder', (
            ('landmark_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['travel_game.Landmark'], unique=True, primary_key=True)),
        ))
        db.send_create_signal('travel_game', ['NaturalWonder'])

        # Adding model 'NormalLocation'
        db.create_table('travel_game_normallocation', (
            ('landmark_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['travel_game.Landmark'], unique=True, primary_key=True)),
        ))
        db.send_create_signal('travel_game', ['NormalLocation'])

        # Adding model 'Wagon'
        db.create_table('travel_game_wagon', (
            ('member_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['travel_game.Member'], unique=True, primary_key=True)),
            ('brokenAxle', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('brokenWheel', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('travel_game', ['Wagon'])


    def backwards(self, orm):
        
        # Deleting model 'OptionHolder'
        db.delete_table('travel_game_optionholder')

        # Deleting model 'ItemHolder'
        db.delete_table('travel_game_itemholder')

        # Deleting model 'Ailment'
        db.delete_table('travel_game_ailment')

        # Deleting model 'Party'
        db.delete_table('travel_game_party')

        # Deleting model 'Member'
        db.delete_table('travel_game_member')

        # Deleting model 'Item'
        db.delete_table('travel_game_item')

        # Deleting model 'Profession'
        db.delete_table('travel_game_profession')

        # Deleting model 'Option'
        db.delete_table('travel_game_option')

        # Deleting model 'Landmark'
        db.delete_table('travel_game_landmark')

        # Deleting model 'OTG'
        db.delete_table('travel_game_otg')

        # Deleting model 'River'
        db.delete_table('travel_game_river')

        # Deleting model 'FortTown'
        db.delete_table('travel_game_forttown')

        # Deleting model 'NaturalWonder'
        db.delete_table('travel_game_naturalwonder')

        # Deleting model 'NormalLocation'
        db.delete_table('travel_game_normallocation')

        # Deleting model 'Wagon'
        db.delete_table('travel_game_wagon')


    models = {
        'travel_game.ailment': {
            'Meta': {'object_name': 'Ailment'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'maxHealth': ('django.db.models.fields.IntegerField', [], {}),
            'message': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
            'minHealth': ('django.db.models.fields.IntegerField', [], {}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
            'probability': ('django.db.models.fields.DecimalField', [], {'max_digits': '5', 'decimal_places': '4'})
        },
        'travel_game.forttown': {
            'Meta': {'object_name': 'FortTown', '_ormbases': ['travel_game.Landmark']},
            'landmark_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['travel_game.Landmark']", 'unique': 'True', 'primary_key': 'True'})
        },
        'travel_game.item': {
            'Meta': {'object_name': 'Item'},
            'cost': ('django.db.models.fields.DecimalField', [], {'max_digits': '4', 'decimal_places': '2'}),
            'description': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'maxQuantity': ('django.db.models.fields.IntegerField', [], {}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
            'party': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['travel_game.Party']"}),
            'quantity': ('django.db.models.fields.IntegerField', [], {}),
            'weight': ('django.db.models.fields.IntegerField', [], {})
        },
        'travel_game.itemholder': {
            'Meta': {'object_name': 'ItemHolder'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        },
        'travel_game.landmark': {
            'Meta': {'object_name': 'Landmark', '_ormbases': ['travel_game.OptionHolder']},
            'distanceFromStart': ('django.db.models.fields.DecimalField', [], {'max_digits': '4', 'decimal_places': '3'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
            'optionholder_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['travel_game.OptionHolder']", 'unique': 'True', 'primary_key': 'True'})
        },
        'travel_game.member': {
            'Meta': {'object_name': 'Member'},
            'carryWeight': ('django.db.models.fields.IntegerField', [], {}),
            'health': ('django.db.models.fields.IntegerField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'isMain': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
            'party': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['travel_game.Party']"}),
            'status': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['travel_game.Ailment']", 'null': 'True', 'blank': 'True'}),
            'type': ('django.db.models.fields.IntegerField', [], {})
        },
        'travel_game.naturalwonder': {
            'Meta': {'object_name': 'NaturalWonder', '_ormbases': ['travel_game.Landmark']},
            'landmark_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['travel_game.Landmark']", 'unique': 'True', 'primary_key': 'True'})
        },
        'travel_game.normallocation': {
            'Meta': {'object_name': 'NormalLocation', '_ormbases': ['travel_game.Landmark']},
            'landmark_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['travel_game.Landmark']", 'unique': 'True', 'primary_key': 'True'})
        },
        'travel_game.option': {
            'Meta': {'object_name': 'Option'},
            'displayName': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
            'holder': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['travel_game.OptionHolder']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
            'value': ('django.db.models.fields.TextField', [], {})
        },
        'travel_game.optionholder': {
            'Meta': {'object_name': 'OptionHolder'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        },
        'travel_game.otg': {
            'Meta': {'object_name': 'OTG'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        },
        'travel_game.party': {
            'Meta': {'object_name': 'Party', '_ormbases': ['travel_game.ItemHolder']},
            'date': ('django.db.models.fields.DateField', [], {}),
            'distanceFromStart': ('django.db.models.fields.DecimalField', [], {'max_digits': '4', 'decimal_places': '3'}),
            'itemholder_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['travel_game.ItemHolder']", 'unique': 'True', 'primary_key': 'True'}),
            'pace': ('django.db.models.fields.IntegerField', [], {})
        },
        'travel_game.profession': {
            'Meta': {'object_name': 'Profession', '_ormbases': ['travel_game.OptionHolder']},
            'description': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
            'optionholder_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['travel_game.OptionHolder']", 'unique': 'True', 'primary_key': 'True'}),
            'party': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['travel_game.Party']", 'null': 'True'})
        },
        'travel_game.river': {
            'Meta': {'object_name': 'River', '_ormbases': ['travel_game.Landmark']},
            'landmark_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['travel_game.Landmark']", 'unique': 'True', 'primary_key': 'True'})
        },
        'travel_game.wagon': {
            'Meta': {'object_name': 'Wagon', '_ormbases': ['travel_game.Member']},
            'brokenAxle': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'brokenWheel': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'member_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['travel_game.Member']", 'unique': 'True', 'primary_key': 'True'})
        }
    }

    complete_apps = ['travel_game']
